package cn.smile.bean.entity.basic;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.util.Date;

/**
 * 店铺基本信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("my_shop")
public class MyShop extends BaseDomain {
    @Serial
    private static final long serialVersionUID = 1804746761890756830L;
    /**
     * 店铺名称
     */
    private String shopName;

    /**
     * 店铺地址
     */
    private String shopAddress;

    /**
     * 店铺电话
     */
    private String shopPhone;

    /**
     * 店铺邀请码
     */
    private String shopCode;

    /**
     * 开始营业时间
     */
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date openingHoursStart;

    /**
     * 结束营业时间
     */
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date openingHoursEnd;

    /**
     * 店长ID(店铺管理员)
     */
    private String shopManagerId;
}